﻿<%@ Register TagPrefix="mwc" Namespace="MySoft.WebControls" Assembly="MySoft.WebControls" %>
<%@ Register TagPrefix="mnu" Namespace="Mysoft.Map.Application.Menus" Assembly="Mysoft.Map.Application.Components" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="BizParamSetting_Import_Left.aspx.vb" Inherits="PubProject.BizParamSetting_Import_Left"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title></title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<script language="javascript" src="/_controls/settings.aspx"></script>
		<LINK href="/_grid/grid.css" type="text/css" rel="stylesheet">
		<link rel="stylesheet" type="text/css" href="/_common/styles/global.css">
		<link rel="stylesheet" type="text/css" href="/_nav/taskbox.css">
		<link rel="stylesheet" type="text/css" href="/_nav/menu.css">
		<link rel="stylesheet" type="text/css" href="/_forms/styles/form.css">
		<LINK href="/_controls/tree/tree.css" type="text/css" rel="stylesheet">
		<script language="javascript" src="/_common/scripts/global.js"></script>
		<script language="javascript" src="/_controls/util/util.js"></script>
		<script language="javascript" src="/_nav/menu.js"></script>
		<script language="javascript" src="/PubProject/js/Public.js"></script>
		<script language="javascript">
			//在线帮助文件
			//var _MyHelpfile;
			var lastObj=null;
			function TrClick(obj)
			{
			    if(obj.allowselect=="0")//不允许选择根结点
			        return;
			    tableCompany.clickNode(obj);
			        
			    if(lastObj==obj)//点击上次选择的节点不做处理
			        return;
			    
			    lastObj=obj;
			    

			    window.top.onBUChange(obj.value);//调用父级页面的函数处理公司改变事件
			}
			
			function win_onload()
			{
			    //默认选中第一行
	            if(tableCompany.rows.length>1)
	            {
			        TrClick(tableCompany.rows[1]);
			    }
			}
		</script>
	</HEAD>
	<body onload="win_onload()">
	    <form id="Form1" method="post" runat="server">
	    <table width="100%" cellspacing="0" cellpadding="0" height="100%" style="table-layout:fixed">
	        <tr style="height:20px">
	            <td><b style="COLOR:#666666">请选择一个公司:</b></td>
	        </tr>
	        <tr>
	            <td class="wizBox1">
	                <div style="padding-right:5px;padding-left:5px;padding-bottom:5px;overflow:auto;width:100%;padding-top:5px;height:100%;">
                    <mwc:repeater id="repCompany" runat="server" EnablePager="false" FooterCssClass="footer" 
                         PKField="BUGUID" SortSignASC='<img src="/_imgs/ico_arrow_u.gif">' SortSignDESC='<img src="/_imgs/ico_arrow_d.gif">'>
                        <HeaderTemplate>
                            <table id="tableCompany" cellspacing="0" cellpadding="0" width="100%" class="singleSelectTree">
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr height='20' code='<%# DataBinder.Eval(Container, "DataItem.Code") %>' allowselect="<%# Iif(DataBinder.Eval(Container, "DataItem.Level")>0,"1","0") %>"
														             value='<%# DataBinder.Eval(Container, "DataItem.GUID") %>'
														             text='<%# DataBinder.Eval(Container, "DataItem.Name") %>'
														             isendcompany='<%# DataBinder.Eval(Container, "DataItem.IsEndCompany") %>'
														             is_hide="false" onclick="TrClick(this)"
														             onmouseover='this.bgColor="#E3E9F4"' onmouseout='this.bgColor="#ffffff"'>
														            <td nowrap="true">
															            <span></span><label style="CURSOR: hand"></label>
															            <%# iif(DataBinder.Eval(Container, "DataItem.IsEndCompany") = "1","<img src='/_imgs/ico_16_10.gif'>","")%>
															            <%# DataBinder.Eval(Container, "DataItem.name") %>
														            </td>
													            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate> 
                    </mwc:repeater>
                    </div>
	            </td>
	        </tr>
	    </table>
		</form>
	</body>
</HTML>
